package com.leadnews.test;

import com.heima.common.aliyun.GreenTextScan;
import com.heima.wemedia.WemediaApplication;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.Map;

@SpringBootTest(classes = WemediaApplication.class)
@RunWith(SpringRunner.class)
public class test {
    @Autowired
    private GreenTextScan greenTextScan;

    @Test
    public void testScan() throws Exception {
        Map 你是一个好人 = greenTextScan.greeTextScan("你是一个好人");

        System.out.println(你是一个好人);
    }

}
